import {get, post, del, put} from "@/apis/http/request";
import {DepressOptions} from "@/apis/model/depress/DepressOptionsModel";

/**
* 得到列表
* @param params
*/
export const getDepressOptionsList = (params: any) => get("/depressOptions/list", params)

/**
* 得到分页列表
* @param params
*/
export const depressOptionsPage = (params: any) => post("/depressOptions/page", params)

/**
* 删除数据
* @param id
* @returns
*/
export const deleteDepressOptionsById = (id: number) => del("/depressOptions/delete/"+ id)

/**
* 新增数据
* @param param
*/
export const insertDepressOptions = (param: DepressOptions) => post("/depressOptions", param)

/**
* 更新数据
* @param param
*/
export const updateDepressOptions = (param: DepressOptions) => put("/depressOptions", param)